package it.desertsupport.model;

public class Army {
	
	private Long idArmy;
	private String weapon;
	private Long price;
	private Long attackPoints;
	private Long defencePoints;
	private String constructionTime;
	private String fuel;
	private Long fuelConsumption;
	private Long ammo;
	private Long cost;
	private String timeTravel;
	private String superUnit;

	// Constructors
	public Army() {}

	public Army(String weapon, Long price, Long attackPoints,
			Long defencePoints, String constructionTime, String fuel,
			Long fuelConsumption, Long ammo, Long cost, String timeTravel,
			String superUnit) {
		super();
		this.weapon = weapon;
		this.price = price;
		this.attackPoints = attackPoints;
		this.defencePoints = defencePoints;
		this.constructionTime = constructionTime;
		this.fuel = fuel;
		this.fuelConsumption = fuelConsumption;
		this.ammo = ammo;
		this.cost = cost;
		this.timeTravel = timeTravel;
		this.superUnit = superUnit;
	}

	public Army(Long idArmy, String weapon, Long price, Long attackPoints,
			Long defencePoints, String constructionTime, String fuel,
			Long fuelConsumption, Long ammo, Long cost,
			String timeTravel, String superUnit) {
		this.idArmy = idArmy;
		this.weapon = weapon;
		this.price = price;
		this.attackPoints = attackPoints;
		this.defencePoints = defencePoints;
		this.constructionTime = constructionTime;
		this.fuel = fuel;
		this.fuelConsumption = fuelConsumption;
		this.ammo = ammo;
		this.cost = cost;
		this.timeTravel = timeTravel;
		this.superUnit = superUnit;
	}

	// Getter and Setter
	public Long getIdArmy() {
		return this.idArmy;
	}
	public void setIdArmy(Long idArmy) {
		this.idArmy = idArmy;
	}

	public String getWeapon() {
		return this.weapon;
	}
	public void setWeapon(String weapon) {
		this.weapon = weapon;
	}

	public Long getPrice() {
		return this.price;
	}
	public void setPrice(Long price) {
		this.price = price;
	}

	public Long getAttackPoints() {
		return this.attackPoints;
	}
	public void setAttackPoints(Long attackPoints) {
		this.attackPoints = attackPoints;
	}

	public Long getDefencePoints() {
		return this.defencePoints;
	}
	public void setDefencePoints(Long defencePoints) {
		this.defencePoints = defencePoints;
	}

	public String getConstructionTime() {
		return this.constructionTime;
	}
	public void setConstructionTime(String constructionTime) {
		this.constructionTime = constructionTime;
	}

	public String getFuel() {
		return this.fuel;
	}
	public void setFuel(String fuel) {
		this.fuel = fuel;
	}

	public Long getFuelConsumption() {
		return this.fuelConsumption;
	}
	public void setFuelConsumption(Long fuelConsumption) {
		this.fuelConsumption = fuelConsumption;
	}

	public Long getAmmo() {
		return this.ammo;
	}
	public void setAmmo(Long ammo) {
		this.ammo = ammo;
	}

	public Long getCost() {
		return this.cost;
	}
	public void setCost(Long cost) {
		this.cost = cost;
	}

	public String getTimeTravel() {
		return this.timeTravel;
	}
	public void setTimeTravel(String timeTravel) {
		this.timeTravel = timeTravel;
	}

	public String getSuperUnit() {
		return this.superUnit;
	}
	public void setSuperUnit(String superUnit) {
		this.superUnit = superUnit;
	}

	// Methods
	@Override
	public String toString() {
		return "Army [idArmy=" + idArmy + ", weapon=" + weapon + ", price="
				+ price + ", attackPoints=" + attackPoints + ", defencePoints="
				+ defencePoints + ", constructionTime=" + constructionTime
				+ ", fuel=" + fuel + ", fuelConsumption=" + fuelConsumption
				+ ", ammo=" + ammo + ", cost=" + cost
				+ ", timeTravel=" + timeTravel + ", superUnit=" + superUnit
				+ "]";
	}
	
	@Override
	public boolean equals(Object object) {
		if(object == null || !(object instanceof Army)){
			return false;
		}
		Army army = (Army) object;
		return army.getIdArmy() == this.idArmy;
	}

}
